﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace DWEIP.Models.MIS
{
    public partial class MIS_WebIM_MessageModel
    {
        [DisplayName("ID")]
        [Required(ErrorMessage = "*")]
        public string Id { get; set; }
        [DisplayName("内容")]
        public string Message { get; set; }
        [DisplayName("发送人")]
        public string Sender { get; set; }
        [DisplayName("发送人")]
        public string SenderTitle { get; set; }
        [DisplayName("接收人")]
        public string receiver { get; set; }
        [DisplayName("接收人")]
        public string receiverTitle { get; set; }
        [DisplayName("作业状态")]
        public bool State { get; set; }
        [DisplayName("发送时间")]
        public DateTime? SendDt { get; set; }
    }
    public partial class MIS_WebIM_SenderModel
    {
        [DisplayName("发送人")]
        public string Sender { get; set; }
        [DisplayName("发送人")]
        public string SenderTitle { get; set; }
        [DisplayName("发给我的未读信息记录数")]
        public int MessageCount { get; set; }

    }
    public partial class MIS_WebIM_MessageRecModel
    {
        [DisplayName("ID")]
        [Required(ErrorMessage = "*")]
        public string Id { get; set; }
        [DisplayName("内容")]
        public string Message { get; set; }
        [DisplayName("发送人")]
        public string Sender { get; set; }
        [DisplayName("发送人")]
        public string SenderTitle { get; set; }
        [DisplayName("接收人")]
        public string receiver { get; set; }
        [DisplayName("接收人")]
        public string receiverTitle { get; set; }
        [DisplayName("阅读状态")]
        public bool State { get; set; }
        [DisplayName("发送时间")]
        public DateTime? SendDt { get; set; }
        [DisplayName("阅读时间")]
        public DateTime? RecDt { get; set; }
    }

    public partial class MIS_WebIM_Message_Rec
    {
        public string MessageId { get; set; }
        public string receiver { get; set; }
        public bool State { get; set; }
        public Nullable<System.DateTime> RecDt { get; set; }

        public virtual MIS_WebIM_Message MIS_WebIM_Message { get; set; }
    }

    public partial class MIS_WebIM_Message
    {
        public MIS_WebIM_Message()
        {
            this.MIS_WebIM_Message_Rec = new HashSet<MIS_WebIM_Message_Rec>();
        }

        public string Id { get; set; }
        public string Message { get; set; }
        public string Sender { get; set; }
        public string receiver { get; set; }
        public bool State { get; set; }
        public Nullable<System.DateTime> SendDt { get; set; }
        public string receiverTitle { get; set; }

        public virtual ICollection<MIS_WebIM_Message_Rec> MIS_WebIM_Message_Rec { get; set; }
    }
}
